package huixue.cn.com.rxapp.user;

import huixue.cn.com.rxapp.login.entity.User;

/**
 * Created by Administrator on 2018/8/4.
 */

public class UserSingle {
    private static UserSingle _instance;
    private User user;

    private UserSingle(){

    }

    public static  UserSingle _getInstance(){
        if(_instance==null){
            synchronized (UserSingle.class){
                if(_instance==null){
                    _instance = new UserSingle();
                }
            }
        }
        return _instance;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
